#if !defined(AFX_STATICSCENE_H__96103C50_B248_4E31_8E32_951EB902F287__INCLUDED_)
#define AFX_STATICSCENE_H__96103C50_B248_4E31_8E32_951EB902F287__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// StaticScene.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CStaticScene window

class CStaticScene : public CStatic
{
// Construction
public:
	//CStaticScene();
	CStaticScene(int nCols=1,int nRows=1);

// Attributes
public:

// Operations
public:
	CRect GetAreaRect(int x,int y,int xspan,int yspan);
	CRect GetRect();
	BOOL IsRectInScene(const CRect &rect);;
	void GetGridWidthAndHeight(int &nWidth,int &nHeight);
public:
	int m_nCols;
	int m_nRows;
	int m_nGridWidth;
	int m_nGridHeight;
	int m_nWidth;
	int m_nHeight;

	BOOL m_bDisabled;

	COLORREF m_crLines;
	COLORREF m_crBackGround;	

	CMenu m_menu;

private:
	void CalGridWidthAndHeight();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CStaticScene)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CStaticScene();

	// Generated message map functions
protected:
	//{{AFX_MSG(CStaticScene)
	afx_msg void OnPaint();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
		
public:
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STATICSCENE_H__96103C50_B248_4E31_8E32_951EB902F287__INCLUDED_)
